package com.yanqu.road.server.cmd.activity.sonhai.cross;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.SonHaiProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.command.CmdApi;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.activity.sonhai.SonHaiActivityMgr;
import com.yanqu.road.server.protocol.Protocol;

@CmdApi(reqMsg = SonHaiProto.SonHaiUsePropRecoverEnergyRespMsg.class, respMsg = SonHaiProto.SonHaiUsePropRecoverEnergyRespMsg.class)
@Cmd(code = Protocol.S_SON_HAI_USE_PROP_RECOVER_ENERGY_FROM_CROSS,desc = "山海伏兽-使用道具恢复体力-跨服返回")
public class SonHaiUsePropRecoverEnergyFromCrossCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        SonHaiProto.SonHaiUsePropRecoverEnergyRespMsg reqMsg = SonHaiProto.SonHaiUsePropRecoverEnergyRespMsg.parseFrom(packet.getBytes());
        //使用道具恢复体力-跨服返回
        SonHaiActivityMgr.usePropRecoverEnergyFromCross(player, reqMsg);
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
